package com.wwy.api.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author 王伟羽
 * @date 2024/9/5 11:44
 */
@FeignClient("user-service")
public interface UserClient {

    @PutMapping("/user/money/deduct")
     void deductMoney(@RequestParam("pw") String pw, @RequestParam("amount") Integer amount);
}
